Repository navigation
Conversation
lkdvos
force-pushed
the
lb/fusiontreeblock_construction
branch
from
October 28, 2026 19:19
8e373fa to
3f74b72
Compare
leburgel
force-pushed
the
lb/fusion_tree_pairs
branch
from
October 29, 2026 06:47
5da53cf to
dc18d84
Compare
Codecov Report❌ Patch coverage is
... and 6 files with indirect coverage changes 🚀 New features to boost your workflow:
|
leburgel
force-pushed
the
lb/fusion_tree_pairs
branch
2 times, most recently
from
November 2, 2026 06:49
e291962 to
b0ff22f
Compare
lkdvos
force-pushed
the
lb/fusion_tree_pairs
branch
from
November 10, 2026 17:15
b0ff22f to
9a2ebbf
Compare
`fusiontrees(W)` is a `FusionTreePairs`, an `AbstractIndices` holding the splitting and fusion trees of every coupled sector; the position of a pair follows from those of its trees, and is its token. `subblockstructure(W)` shares these tokens. `fusionblocks` groups the trees of each side by their uncoupled sectors, combines the groups in the order in which they first occur, and fills every block once at its final size; `degeneracystructure` loops over the trees of both sides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ePairs The units of a product sector, the block sectors of a space without indices, come with a shape, and showing a FusionTreePairs iterates it in reverse. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the per-tree block indices by the coupled sectors, and use the pair of tree positions as the token, with `pairposition` converting it into the position of the pair. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…cystructure Collecting them with `map` made the subblock loop 10-15% slower than on main, independently of how the strided structures are stored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`degeneracystructure` now stores the sizes, strides and offset of every splitting and fusion tree, zero-padded such that the structure of a subblock is their sum, instead of the structure of every subblock. The strides follow in closed form from the column-major layout of the blocks. The tree transformers address subblocks by the tokens of their fusion tree pairs, which index these per-tree structures directly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
leburgel
force-pushed
the
lb/fusion_tree_pairs
branch
from
November 16, 2026 19:32
f687a06 to
776ac93
Compare
… of Int32 pairs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # docs/src/Changelog.md
# Conflicts: # docs/src/Changelog.md # src/tensors/treetransformers.jl
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #596.
fusiontrees(W)is aFusionTreePairs, anAbstractIndicesthat stores the splitting and fusion trees of every coupled sector instead of every pair. The position of a pair follows from those of its trees, and is its (integer) token.subblockstructure(W)is aFusionTreePairDictsharing those tokens.fusionblocksgroups the trees of each side by their uncoupled sectors, combines the groups in the order in which they first occur (the order of Construct fusion tree blocks from the shorter side, and group the cached trees infusionblocks#581), and fills every block once at its final size.degeneracystructureloops over the trees of both sides.Int32pairs, of which every block holds a range (SubblockIndices), instead of two vectors per block. After all 480 permutations of a fermionic SU(2) tensor, this takes TensorKit's caches from 75.0 to 56.8 MiB (reproducer below);cachesize, which does not count the headers of the small vectors, hardly changes (58.1 to 57.2 MiB).The transformers are identical to those of #581, block order included, on all transformers of one CTMRG iteration (554 for fℤ₂ × U(1) × SU(3), 550 for fℤ₂ × U(1) × SU(2) × U(1)).
Building those transformers, on top of main + #580 + #581 + #592, before the packed tokens (D = 7, shared machine at load 16–29, ranges over 3 interleaved rounds):
Keying the groups by the integer positions of the uncoupled sectors instead makes
fusionblocksabout 1 s faster for SU(2), but the totals are within the noise, so this keeps the simpler version.Reproducer
before the packed tokens (
776ac93d):with them (
6baaf9ee):🤖 Generated with Claude Code